package com.macro.mall.pay.service.wechat.bo;

import com.macro.mall.common.api.input.BaseInput;
import com.macro.mall.ums.enums.UserSourceTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * class
 *
 * @author xuyanjun
 * @date 2019-10-25
 */
@Getter
@Setter
@Accessors(chain = true)
@Valid
public class CreateH5PrePayInfoInput extends BaseInput {

    /**
     * appId
     */
    @NotNull(message = "appId不能为空。")
    private UserSourceTypeEnum sourceEnum;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空。")
    @Min(value = 1, message = "订单id不能为空。")
    private Integer orderId;

    /**
     * 支付回调通知地址
     */
    private String callbackNotifyUrl;

    /**
     * 客户端ip
     */
    private String clientIp;

    /**
     * 完成支付后的重定向url
     */
    private String redirectUrl;
}
